﻿using System;

namespace FGUFW.Core.System
{
    /// <summary>
    /// 有序广播 可以打断消息调用
    /// </summary>
    public interface IMessenger<T,Y>
    {
		void Add(T msgID,Action<Y> callback);
		void Remove(T msgID,Action<Y> callback);
		void Broadcast(T msgID,Y msg);
		void Clear();
    }
}
